package com.ytjj.common.constants.im;

/**
 * redis key
 */
public class ImRedisKeyConstant {
    //客户绑定的客服
    public static String CUSTOMER_BIND_SERVICE = "customer:bind:service:";
    //系统设定客服最高可接待客户人数
    public static String MAX_CONNECT_NUM = "max:connect:num:";
    //排队人数，这个就不需要每次去添加了，到时候通过redis.listLength(key)获取
    public static String WAIT_CONNECT_CUSTOMER_NUM = "wait:connect:customer:";
    //等待连接的客户id
    public static String WAIT_CONNECT_CUSTOMER_USERID = "wait:connect:customer:userid:";

    //会话历史消息
    public static String SESSION_HISTORY_MESSAGES = "session:history:messages";
    //消息撤回
    public static String MESSAGE_RECALL = "im:message:recall:";

    //非服务时间提示语开关
    public static String OUT_OF_SERVICE_TIME_MESSAGE_SWITCH = "im:message:switch";
    //非服务时间提示语
    public static String OUT_OF_SERVICE_TIME_MESSAGE = "im:message:outtime";
    //系统欢迎语是否开启 1-开始 0-关闭
    public static String WELCOME_MESSAGE_SWITCH = "im:welcome:switch";
    //系统欢迎语
    public static String WELCOME_MESSAGE = "im:welcome:message";
    //客服无应答时提示---开关
    public static String SERVICE_NO_ANSWER_SWITCH = "im:serviceNoAnswer:switch";
    //客服无应答时提示---内容
    public static String SERVICE_NO_ANSWER_MESSAGE = "im:serviceNoAnswer:message";
    //客服结束对话---回复的消息
    public static String END_MESSAGE = "im:end:message";
    //排队超时提醒--回复内容
    public static String QUEUE_UP_TIMEOUT_MESSAGE = "im:queueUpTimeOut:message";
    //客服未回复消息时长阈值
    public static String NOT_REPLY_MESSAGE_TIME = "im:notReplyMessageTimeByService";
    //客户未回复消息时长阈值
    public static String NOT_REPLY_MESSAGE_TIME_CUSTOMER = "im:notReplyMessageTimeByCustomer";
    //客户长时间未回复消息时的提示语
    public static String TO_CUSTOMER_SYS_MESSAGE_BY_NOT_REPLY = "im:sysmessageto:customer";
    //是否给客户发送超时未回复的消息开关
    public static String TO_CUSTOMER_SYS_MESSAGE_SWITCH = "im:sysmessageto:customer:switch";

    //客服每日登录时间
    public static String IM_ONLINE_SERVICE_TIME = "im:online:time:";
    //客服每次设置在线时间
    public static String IM_ONLINE_SERVICE_TIME_EVERY_TIME = "im:online:time:everyTime:";////////////////////////////////////
    //客服每日小休开始时间
    public static String IM_REST_SERVICE_TIME = "im:unline:time:";
    //客服每次设置小休的时间
    public static String IM_REST_SERVICE_TIME_EVERY_TIME = "im:rest:time:everyTime:";////////////////////////////////////////

    //客服每次设置离线的时间
    public static String IM_SERVICE_UNLINE_TIME_EVERY_TIME = "im:rest:time:everyTime:";////////////////////////////////////////


    //客服每日在线时长
    public static String IM_SERVICE_TIME = "im:service:duration:";/////////////////////////////////////////
    //客服每日小休时长
    public static String IM_REST_TIME = "im:service:rest:";//////////////////////////////////////
    //客服每日离线时长
    public static String IM_SERVICE_OFFLINE_TIME = "im:service:offline:";//////////////////////////////////////
    //客服状态1-在线 2-小休 3-离线
    public static String IM_SERVICE_STATUS = "im:service:status:";
    //客服每日首次登录时间
    public static String IM_LOGIN_TIME = "im:service:logintime:";
    //客服每日小休次数
    public static String IM_SERVICE_REST_NUM = "im:service:restnum:";
    //客服每日离开次数
    public static String IM_SERVICE_UNLINE_NUM = "im:service:unlinenum:";

    //客服累计在线时长
    public static String IM_SERVICE_ONLINE_TOTAL = "im:service:online:total:";
    //客服累计小休时长
    public static String IM_SERVICE_REST_TOTAL = "im:service:rest:total:";
    //客服累计离线时长
    public static String IM_SERVICE_UNLINE_TOTAL = "im:service:unline:total";
    //客服累计小休次数
    public static String IM_SERVICE_REST_NUM_TOTAL = "im:service:rest:num:total:";
    //客服累计离开次数
    public static String IM_SERVICE_UNLINE_NUM_TOTAL = "im:service:unline:num:total:";

    //保存客户和建立的会话信息
    public static String CUSTOMER_SESSION = "im:customer:session:";
    //存储客户和客服建立关系的介质
    public static String IM_MEDIUMS_CUSTOMER = "im:mediums:customer:";
    //存储客服和客户建立的关系 因为客服是1对多
    public static String IM_MEDIUMS_SERVICE = "im:mediums:service:";

    //客服登陆后把邮箱和名称存在redis中
    public static String IM_SERVICE_EMAIL = "im:service:email:";

    //客服服务开始时间
    public static String IM_START_SERVICE_TIME = "im:start:service:time:";
    //客服服务结束时间
    public static String IM_END_SERVICE_TIME = "im:end:service:time:";

    //用户敏感词库
    public static String IM_KEYWORDS_CUSTOMER = "im:keywords:customer";
    //客服敏感词库
    public static String IM_KEYWORDS_SERVICE = "im:keywords:service";
}
